package com.cloud.spring.demo.entity;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Component
public class User implements Serializable {
    private int id=1;
    private String name="tom";
    private LocalDate birth=LocalDate.parse("1993-09-16");
    private LocalDateTime localDateTime=LocalDateTime.now();
}
